<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0
        }

        div {
            width: 600px;
            margin: 0 auto;
            border: 1px solid saddlebrown;
        }

        table {
            width: 100%;
            text-align: center;
        }
        tr td{
            height: 40px;
            border-bottom: 1px solid darkcyan;
        }
    </style>
</head>
<body>
<div>
    <table>
        <tr>
            <td>编号</td>
            <td>名称</td>
            <td>年龄</td>
            <td>出生日期</td>
        </tr>
        <c:forEach items="${pageUtil.datas}"  var="emp">
            <tr>
                <td>${emp.eid}</td>
                <td>${emp.ename}</td>
                <td>${emp.eage}</td>
                <td>
                    <fmt:formatDate value="${emp.birthday}" pattern="yyyy-MM-dd"></fmt:formatDate>
                </td>
            </tr>

        </c:forEach>
        <tr>
            <td colspan="4">
                <a href="/emp/findall?pageNo=1">首页</a>
                <a href="/emp/findall?pageNo=${pageUtil.pageNo-1}">上一页</a>
                <a href="/emp/findall?pageNo=${pageUtil.pageNo+1}">下一页</a>
                <a href="/emp/findall?pageNo=${pageUtil.pageAll}">末页</a>
                【${pageUtil.pageNo} / ${pageUtil.pageAll} / ${pageUtil.count}】
            </td>
        </tr>   
    </table>
</div>
</body>
</html>
